﻿using System;
using System.Collections.Generic;
using System.Data;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectSunny.Controls
{
    public partial class InfoFooter : System.Web.UI.UserControl
    {

        public string CompanyInfoName;
        public string CompanyInfoAdd;
        public string CompanyInfoMobile;
        public string CompanyInfoFax;
        public string CompanyInfoEmail;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack) 
            {
                DataTable dt = DAL.DCollector.DBCollector.Instance.StoredSelectTable("tbl_CompanyInfo");
                CompanyInfoName = dt.Rows[0]["CompanyInfo_Name"].ToString();
                CompanyInfoAdd = dt.Rows[0]["CompanyInfo_Add"].ToString();
                CompanyInfoMobile = dt.Rows[0]["CompanyInfo_Mobile"].ToString();
                CompanyInfoFax = dt.Rows[0]["CompanyInfo_Fax"].ToString();
                CompanyInfoEmail = dt.Rows[0]["CompanyInfo_Email"].ToString();
            }
        }
    }
}